﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using YT.DB;
using YT.Commons;
using YT.Modules;

namespace YT.XH.SuddenDeafness
{
    public partial class frmSDMethodMtn : Form
    {
        public frmSDMethodMtn()
        {
            InitializeComponent();
        }

        private void tabPage5_Click(object sender, EventArgs e)
        {

        }

        private void frmSDMethodMtn_Load(object sender, EventArgs e)
        {
            this.Text = "具体方法";
            tabControl1.TabPages.Remove(tabPage3); 
            timer1.Start();
            SetlblDesc();
        }


        private void SetlblDesc()
        {
            DBAccess dbcon = new DBAccess(false, false);
            string strHospitalID = DataFunctions.GetFieldValue("mSickPerson", "HospitalID", " sickrecid='" + SysVar.SickRecID + "'");
            bool isInProvince = CvtFunc.ToBoolean(DataFunctions.GetFieldValue("mHospital", "InProvince", "HospitalID='" + strHospitalID + "'"));
            if (isInProvince == true)
            {
                lblInProvince.Visible = true;
                lblOutProvince.Visible = false;
            }
            else
            {
                lblInProvince.Visible = false;
                lblOutProvince.Visible = true;
            }
            dbcon.CloseCon(); 
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            if (this.Opacity >= 1)
                timer1.Stop();
            this.Opacity += 0.04;
        }


    }
}
